-- GENERATED SPELL FOR [Kartra Bloodsnarl] --


function spell0_14942(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_14942', 520, 1)
end

function spell1_14942(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_14942', 2000, 1)
end

function Sorts_14942(pUnit, Event)
local choix_sorts_14942 = math.random(0, 1)
if choix_sorts_14942 == 0 then
pUnit:RegisterEvent('spell0_14942', 1, 1)
end
if choix_sorts_14942 == 1 then
pUnit:RegisterEvent('spell1_14942', 1, 1)
end
end

function mob14942_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14942', math.random(1500, 3000), 1)
end

function mob14942_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14942_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14942_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14942, 1, 'mob14942_Action')
RegisterUnitEvent(14942, 2, 'mob14942_Leave')
RegisterUnitEvent(14942, 3, 'mob14942_Kill')
RegisterUnitEvent(14942, 4, 'mob14942_Die')
